// 分类相关操作
import request,{Method} from '@/plugins/api.js'

// 获取一级分类
export function getCateLevel1(){
    return request({
        url : '/product/category/getIndexCateLevel1',
        method: Method.GET,
    })
}

// 获取CateLog列表
export function getCateLog(){
    return request({
        url : '/product/category/getIndexCateLevel2andLevel3',
        method: Method.GET,
    })
}

// 根据cateId获取它的父分类将其组合起来
export function getCateParentAndMerge(catalogId){
    return request({
        url : `/product/category/getCateParentAndMerge/${catalogId}`,
        method: Method.GET,
    })
}